package com.gugee.tiktok.web.dto;

import com.gugee.tiktok.web.model.mysql.HelpArticle;
import com.xiguaji.boot.data.rdb.aggregate.Aggregate;
import lombok.Data;
import org.mapstruct.Mapper;

import java.util.List;


/**
 * 文章
 */
@Data
public class HelpCenterArticleDto extends Aggregate{
    //文章标题
    private  String title;
    //url后缀
    private String urlSuffix;
    //文章排序号
    private Integer articleSort;
    //文章所挂菜单ID
    private Long menuId;
    //文章内容
    private String content;
    //文章描述
    private String description;
    //文章是否可见
    private boolean display;

    @Mapper(componentModel = "spring")
    public interface HelpCenterArticleDtoMapper {

        HelpCenterArticleDto mapperDto(HelpArticle dto);
        List<HelpCenterArticleDto> mapperList(List<HelpArticle> dtos);

    }
}

